package com.lemon.mybatisplus.properties;

import com.lemon.core.factory.YamlPropertySourceFactory;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.session.Configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 李猛
 * @datetime 2024/2/20 17:13
 * @description 类对象
 */
@Getter
@Setter
@Component
@PropertySource(value = "classpath:mybatis-plus-config.yml", factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "mybatis")
public class MybatisPlusConfigProperties {
    //mybatis-plus 映射文件路径
    private String mapperLocations;
    //mybatis-plus 类型别名
    private String typeAliasesPackage;
    //租户ID的列字段
    private String tenantColumnId;
    //mybatis模糊查询的字段
    private List<String> selectLikeColumn;
    //mybatis忽略查询租户ID的表
    private List<String> tenantIgnoreTable;
}
